#!/bin/bash

# install 依赖的Common
# shellcheck disable=SC2164
cd ../../
mvn clean package -DskipTests=true

# 部署到远程服务器
scp user-center/target/user-center-0.0.1-SNAPSHOT.jar root@192.168.31.113:/usr/local/user-center.jar

# 登录远程机器
ssh root@192.168.31.113 "cd /usr/local && sh restart_user_center.sh"

